"""
@Time : 2021/9/15 19:56 
@Author : 常雷
@File : t_12一句代码生成有序数列.py 
@Software: PyCharm
"""
# 如何用一行代码生成[1, 4, 9, 16, 25, 49, 64, 81, 100]

lst = [i**2 for i in range(1, 11)]
print(lst)